package com.ilop.sthome.mvp.contract.scene;

import com.example.common.mvp.IBasePresenter;
import com.example.common.mvp.IBaseView;
import com.ilop.sthome.data.greenDao.AutomationBean;
import com.ilop.sthome.data.greenDao.DeviceInfoBean;

import java.util.ArrayList;
import java.util.List;

/**
 * @author skygge
 * @date 2020/4/14.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：输入输出条件编辑
 */
public interface SetActionContract {

    interface IView extends IBaseView{

        void showTitle(String msg);

        void showTime(int minute, int second);

        void showAction(int position);

        void showTrigger(ArrayList<String> trigger);

        void showTriggerCode(List<String> triggerCode);

        void showMinuteAndSecond(ArrayList<String> number);
    }

    interface IPresent extends IBasePresenter<IView>{

        void getDeviceInfo(DeviceInfoBean deviceInfoBean);

        void getTrigger(boolean isLock);

        void getMinuteAndSecond();

        void showUpdateData();

        void isAddNewInputAction();

        void isAddNewOutputAction(AutomationBean automation);

        void editInputDeviceInfo(String action);

        void editOutputDeviceInfo(int minute, int second, String action);

        void isAddOrUpdateInput(boolean update);

        void isAddOrUpdateOutput(boolean update);
    }

}
